package factory.simple;

/**
 * Pizza抽象类
 *
 * @author yi qiang
 * @date 2021/5/3 15:26
 */
public  abstract class Pizza {

    protected String name;

    /**
     * 准备原料
     */
    public abstract void prepare();

    /**
     * 烘烤
     */
    public  void bake(){
        System.out.println(this.name+"正在烘烤... ");
    }

    /**
     * 切块
     */
    public  void cut(){
        System.out.println(this.name+"正在切块... ");
    }

    /**
     * 打包
     */
    public  void box(){
        System.out.println(this.name+"正在打包... ");
    }

    public void setName(String name) {
        this.name = name;
    }
}
